package com.ruoyi.project.system.domain;

import com.alibaba.fastjson2.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class FinalResultInfo {

    private Integer id;

    private JSONObject info;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    private boolean pass = true;

    private String msg = "成功";

    public FinalResultInfo() {
    }

    public FinalResultInfo(DtFinalResult fri, JSONObject info) {
        this.id = fri.getId();
        this.time = fri.getUpdateTime();
        this.info = info;
    }

    public FinalResultInfo(String msg) {
        this.setPass(false);
        this.setMsg(msg);
    }


}
